const express = require('express');
const router = express.Router();
const activityCtrl = require('../../controllers/front/activityCtrl');

router.get('/total', activityCtrl.total); // 获取活动总数
router.get('/list', activityCtrl.list); // 活动列表
router.get('/user/list', activityCtrl.userList); // 用户发表活动
router.get('/get', activityCtrl.getById); // 某个活动详情
router.post('/public', activityCtrl.public); // 发布活动
router.post('/edit', activityCtrl.editOne); // 编辑活动
router.get('/del', activityCtrl.delById); // 删除活动
router.get('/category', activityCtrl.category); // 获取所有分类

module.exports = router;
